from tools.my_methods import *


class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        ss = list(s)
        ss.sort()
        tt = list(t)
        tt.sort()
        return ''.join(ss) == ''.join(tt)


questions = [
    ('anagram', 'nagaram'),
    ('rat', 'car'),
]

work(questions, lambda q: Solution().isAnagram(q[0], q[1]))


